Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide functions to terminate the TBB thread pool in library interfaces #191

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kittobi1992
Copy link
Member

@kittobi1992 kittobi1992 commented Oct 2, 2024

This PR adds support to terminate the TBB thread pool via interface functions in the C and Python interface (resolves issue #187).

Note the change uses oneapi::tbb::task_scheduler_handle which is fully functional since oneTBB 2021.6. It seems that our CI uses oneTBB 2021.5 which needs to be fixed before merging.

@N-Maas
Copy link
Collaborator

N-Maas commented Oct 2, 2024

Seems the TBB version in the CI doesn't have finalize yet. Ubuntu 22 has only v2021.5. Maybe we can gate it behind a compile flag?

@kittobi1992
Copy link
Member Author

Seems the TBB version in the CI doesn't have finalize yet. Ubuntu 22 has only v2021.5. Maybe we can gate it behind a compile flag?

I think this is the only option. At least the MacOS CI build has the newest version. We should also replace the Ubuntu 20 build with an Ubuntu 24 CI build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants